import Layout from '@/layouts/index.vue'
import DashboardIcon from '@/assets/test-img/icon_menu_zhuye.svg'
import HomeIcon from '@/assets/test-img/icon_menu_diaodu.svg'
import ModelIcon from '@/assets/test-img/icon_menu_zj.svg'

export default [
  {
    path: '/permission',
    component: Layout,
    redirect: '/permission/index',
    name: 'permission',
    meta: { title: '权限管理', icon: HomeIcon, single: true },
    children: [
      {
        path: 'index',
        name: '用户管理',
        component: () => import('@/pages/permission/user/index.vue'),
        meta: { title: '用户管理', icon: DashboardIcon }
      },
      {
        path: 'role_index',
        name: '角色管理',
        component: () => import('@/pages/permission/role/index.vue'),
        meta: { title: '角色管理', icon: ModelIcon }
      }
    ]
  }
]
